<div id="formsuccess" style="display:none">{if isset($errors.status) && $errors.status == "success"}currentPage{/if}</div>
<form id="moveUserForm" name="form" action="?module=users&action=ajaxMoveUser" method="post" class="nyroModal">
    {t assignTo=title}Move users{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title="Déplacer les utilisateurs"}
<div id="modalContent">
		<table class="modalTable">
			{if $nbRows > 1}
			<tr><th>{t}Select the group where to move the{/t} {$nbRows} {t}users to{/t}.</th></tr>
			{else}
			<tr><th>{t}Select the group where to move {/t} '{$uniqueRow->getLabel()}' {t}to.{/t}</th></tr>
			{/if}
			{foreach from=$rows item=row}
			<input type="hidden" name="row[]" value="{$row}">
			{/foreach}
			
			<select name="groupId" style="display: block; margin: 5px auto">
			{foreach from=$groupOptionsTab item=value}
				<option value="{$value.0}" {$value.2}>{$value.1}</option>
			{/foreach}
			</select>
		</table>
</div>
{t assignTo=footerTitle}Move{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" label=$footerTitle}
</form>